package com.xiangxiangjd.analyse.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import com.xiangxiangjd.analyse.utils.excel.annotation.ExcelField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author 肖守凯
 * @since 2021-03-18
 */
@Data
@TableName("repair")
@ApiModel(value="Repair对象", description="")
public class Repair extends Model<Repair> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "repair_id", type = IdType.ID_WORKER_STR)
    private String repairId;

    @ExcelField(title = "修理项目大类")
    @ApiModelProperty(value = "修理项目大类")
    @TableField("item")
    private String item;

    @ExcelField(title = "修理子项目")
    @ApiModelProperty(value = "修理子项目")
    @TableField("child")
    private String child;


    @ExcelField(title = "修理科目")
    @ApiModelProperty(value = "修理科目")
    @TableField("forRepair")
    private String forRepair;

    @ExcelField(title = "修理原因及目的")
    @ApiModelProperty(value = "修理原因及目的")
    @TableField("subjects")
    private String subjects;


    @ExcelField(title = "修理方法")
    @ApiModelProperty(value = "修理方法")
    @TableField("method")
    private String method;

    @ExcelField(title = "发生频度")
    @ApiModelProperty(value = "发生频度")
    @TableField("more_frequent")
    private String moreFrequent;

    @ExcelField(title = "工具设备")
    @ApiModelProperty(value = "工具设备")
    @TableField("equipment")
    private String equipment;

    @ExcelField(title = "耗材")
    @ApiModelProperty(value = "耗材")
    @TableField("consumables")
    private String consumables;

    @ExcelField(title = "修理难度")
    @ApiModelProperty(value = "修理难度")
    @TableField("difficulty")
    private String difficulty;

    @ExcelField(title = "修理费用估计")
    @ApiModelProperty(value = "修理费用估计")
    @TableField("cost")
    private String cost;

    @ExcelField(title = "修理级别")
    @ApiModelProperty(value = "修理级别")
    @TableField("level")
    private String level;



    //自动新增时间
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private String createTime;
    //自动更新时间

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

}
